package models;

import java.util.ArrayList;

import javax.persistence.*;

import play.db.jpa.Model;

@Entity
public class Rate extends Model{

	@ManyToOne
	private User user;
	
	@ManyToOne
	private Serie serie;
	
	private int rate;

	

	public Rate(User user, Serie serie, int rate) {
		super();
		this.user = user;
		this.serie = serie;
		this.rate = rate;
	}

	
	
	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		this.rate = rate;
	}


	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}


	public Serie getSerie() {
		return serie;
	}

	public void setSerie(Serie serie) {
		this.serie = serie;
	}


	
		
}
